package com.itheima.notUse;


//@ControllerAdvice  //控制器增强类
//@Slf4j
public class ExceptionCatch {

   /* *//**
     * 处理不可控异常
     * @param
     * @return
     *//*
    @ExceptionHandler(Exception.class)
    @ResponseBody
    public ResponseResult exception(Exception e){
        e.printStackTrace();
        log.error("catch exception:{}",e.getMessage());
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR);
    }

    *//**
     * 处理可控异常  自定义异常
     * @param
     * @return
     *//*
    @ExceptionHandler(CustomException.class)
    @ResponseBody
    public ResponseResult exception(CustomException e){
        log.error("catch exception:{}",e);
        return ResponseResult.errorResult(e.getAppHttpCodeEnum());
    }*/
}
